import {createApp} from 'vue'
// 引入element-plus插件与样式
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
// 配置国际化
//@ts-ignore
import zhCn from 'element-plus/dist/locale/zh-cn.mjs'
import App from '@/App.vue'
// 配置组件index初始化install方法
import globalComponent from '@/components'
import router from "@/router";
import store from "@/store";
import "@/styles/variable.scss"
import './permission'

// 获取应用实例对象
const app = createApp(App);
// 安装element-plus插件
app.use(ElementPlus, {
    locale: zhCn,
});

app.use(globalComponent);
app.use(router)
//安装仓库
app.use(store)
// 将应用挂在到挂载点上
app.mount('#app')

